<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Grom Hellscream
 * Date: 11/2/12
 * Time: 11:06 AM
 * To change this template use File | Settings | File Templates.
 */
//no direct access
defined('_JEXEC') or die;
?>

<?php if (count($quangcaos) > 0): ?>

<div class="widget">
    <h3 class="title">
        Giới thiệu &amp; quảng cáo
    </h3>
    <?php foreach ($quangcaos as $quangcao): ?>
    <div class="textwidget" style="text-align: center;">
        <a href="<?php echo 'http://' . $quangcao->lienket; ?>" target="_blank">
            <img src="<?php echo JURI::root() . $quangcao->banner; ?>" width="240" alt="<?php echo $quangcao->tendoitac; ?>"/>
        </a>
    </div>
    <?php endforeach; ?>
    <div class="cleaner">&nbsp;</div>
</div>
<?php endif; ?>
